-
Notifications
You must be signed in to change notification settings - Fork 9.5k
fix: update comparison #40953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: update comparison #40953
Conversation
Community NoteVoting for Prioritization
For Submitters
|
Warning This Issue has been closed, meaning that any additional comments are much easier for the maintainers to miss. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
Hi all, Restored the branch and re-opened the PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
% make testacc PKG=workspaces TESTS="TestAccWorkSpaces_serial/Workspace/workspaceProperties_runningModeAutoStopTimeoutInMinutes"
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/workspaces/... -v -count 1 -parallel 20 -run='TestAccWorkSpaces_serial/Workspace/workspaceProperties_runningModeAutoStopTimeoutInMinutes' -timeout 360m -vet=off
2025/03/31 15:31:49 Initializing Terraform AWS Provider...
=== RUN TestAccWorkSpaces_serial
=== PAUSE TestAccWorkSpaces_serial
=== CONT TestAccWorkSpaces_serial
=== RUN TestAccWorkSpaces_serial/Workspace
=== RUN TestAccWorkSpaces_serial/Workspace/workspaceProperties_runningModeAutoStopTimeoutInMinutes
--- PASS: TestAccWorkSpaces_serial (1738.33s)
--- PASS: TestAccWorkSpaces_serial/Workspace (1738.33s)
--- PASS: TestAccWorkSpaces_serial/Workspace/workspaceProperties_runningModeAutoStopTimeoutInMinutes (1738.33s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/workspaces 1744.868s
Thanks for the detailed investigation and fix, @stefanfreitag! 👍 |
Warning This Issue has been closed, meaning that any additional comments are much easier for the maintainers to miss. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
This functionality has been released in v5.94.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Description
As described in #40580 updates to the value of
running_mode_auto_stop_timeout_in_minutes
in the resourceaws_workspaces_workspace
are not forwarded to the AWS Go SDK v2.Example configuration of the resource:
running_mode
is set to"AUTO_STOP"
, so that the provider should allow updated torunning_mode_auto_stop_in_minutes
.In the debug logs of a
terraform apply
one can actually find below lineoriginating from this source code.
It seems to be the case that a type conversion to
string
is missing in this code snippettypes.RunningModeAutoStop
should readstring(types.RunningModeAutoStop)
Relations
Closes #40580
Relates #32346
References
Output from Acceptance Testing
I am not 100% sure what to add here. I think it should be something like below for running all tests related to workspaces
% make testacc TESTS=TestAccWorkSpaces_serial PKG=workspaces
On my end I executed the test
testAccWorkspace_workspaceProperties_runningModeAutoStopTimeoutInMinutes
, but not other tests/ the whole "suite" because of costs.Please let me know if that`s fine from your end.